﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FsCarInfo.Core.Entity.IRespositories;
using FsCarInfo.Core.Entity.IServices;
using HMIS.FrameWork.DomainBase;
using FsCarInfo.Core.Entity;

namespace FsCarInfo.Facade.Impl
{
    public class BCarSendFacadeImpl : IBCarSendFacade
    {
        private readonly IBCarSendRepository BCarSendRepository;
		
		public BCarSendFacadeImpl(IBCarSendRepository BCarSendRepository)
        {
			this.BCarSendRepository = BCarSendRepository;
        }

		#region IBCarSendFacade 成员

		#region Entity

		public void SaveOrUpdate(BCarSend entity)
        {
			this.BCarSendRepository.SaveOrUpdate(entity);
        }

        public void Delete(string id)
        {
			BCarSendRepository.Delete(id);
        }

		public BCarSend Get(string id)
        {
			return BCarSendRepository.Get(id);
        }

		public BCarSend Load(string id)
        {
			return BCarSendRepository.Load(id);
		}

		#endregion

		#region Query

		public IList<BCarSend> GetPlistAll(int start, int limit, string sort, string dir, List<DataFilter> filters, out long total)
		{
			return BCarSendRepository.GetPlistAll(start, limit, sort, dir, filters, out total);
		}

		#endregion

		#endregion
	}
}
